package cn.mesmile.excel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author zb
 * @date 2020/12/22 14:25
 * @Description
 */
public enum UserStateEnum {
    /**
     *  用户状态
     */
    PRACTICE(1, "实习"),
    TRYOUT(2, "试用期"),
    FORMAL(3,"正式"),
    RESIGN(4,"离职");

    UserStateEnum(int code, String description){
        this.code = code;
        this.description = description;
    }

    /**
     * 方式一：实现 IEnum 接口   方式二：@EnumValue  任选一种方式即可
     */
    @JsonValue
    @EnumValue
    private final int code;

    private final String description;

    public Integer getValue() {
        return code;
    }
}
